# script0701.py - The Secret Word Validation.
# Written by <your name here>
# Date: <today's date>
#
############ Define Variables ###########
#
max_attempts=3              #Number of allowed input attempts.
the_word='secret'           #The secret word.
#
############# Get Secret Word ################
#
print()
for attempt_number in range (1, max_attempts + 1):
     secret_word=input("What is the secret word? ")
     if secret_word == the_word:
          print()
          print("Congratulations! You know the secret word!")
          print()
          break   # Stops the script's execution.
     else:
          print()
          print("That is not the secret word.")
          print("You have", max_attempts - attempt_number, "attempts left.")
          print()
